/* 左侧导航初始样式 */
.side-nav {
  position: fixed;
  top: 0;
  left: -80%;
  /* 初始隐藏在左侧 */
  width: 80%;
  height: 100%;
  background: linear-gradient(90deg, rgba(87, 102, 185, 1) 0%, rgba(34, 219, 253, 1) 100%);
  color: #fff;
  overflow-y: auto;
  transition: left 0.3s ease;
  /* 添加平滑过渡效果 */
  z-index: 1000;

  .logo-wrap {
    width: 100%;
    height: 120px;
    display: flex;
    justify-content: center;
  }

  .m-logo {
    width: 100%;
  }
}

.side-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center;
}

.side-nav ul li {
  display: block;
  width: 80%;
  line-height: 60px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.side-nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 20px;
}

.side-nav ul li a:hover {
  text-decoration: underline;
}

/* 显示导航时的样式 */
.side-nav.show {
  left: 0;
  /* 从左侧滑出 */
}

/* 按钮样式 */
#btn-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1100;
  color: #fff;
  cursor: pointer;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  .bi{
    font-size: 60px !important;
  }
}



/* 图标样式 */
#btn-toggle .btn-toggle i {
  font-size: 24px;
  transition: transform 0.3s ease; /* 添加旋转动画 */
}

#btn-toggle .btn-toggle i.bi-x {
  transform: rotate(90deg); /* 切换为关闭图标时旋转 */
}

#btn-toggle .btn-toggle i.bi-list {
  transform: rotate(0deg); /* 切换为菜单图标时恢复 */
}

/* 遮罩层样式 */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  /* 半透明黑色背景 */
  z-index: 999;
  /* 遮罩层在导航下方 */
  display: none;
  /* 初始隐藏 */
}

.overlay.show {
  display: block;
  /* 显示遮罩层 */
}